package com.llf.Mapper;

import com.llf.Pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Mapper
@Repository
public interface DepartmentMapper {
    /**
     *  得到所有部门信息
     * @return
     */
    ArrayList<Department> getall();

    /**
     * 根据部门id查询部门
     */
     Department getById( @Param("id") Integer id);
}
